fetch('/open_webapi/MofineApi.asmx/GetMainInfo?editionId=1').then(response => { if (response.ok) { return response.json(); } else { throw new Error('pageseoinfos went wrong!'); } }).then(pageseoinfos => { MIP.setData({ seoinfosList: pageseoinfos.data.items }); }); function getQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; } MIP.setData({ news_views_url:"/open_webapi/MofineApi.asmx/GetTempNewsDetail?id="+getQueryString("id")+"&sortId="+getQueryString("sortId")+"&menuIndexVar="+getQueryString("menuIndexVar")+"&editionId="+getQueryString("editionId")+"&selType=" });